Skip to content

Fix ComponentProvider Javadoc for resource detector lookup - #9101

Open
thswlsqls wants to merge 1 commit into
open-telemetry:mainfrom
thswlsqls:docs/component-provider-resource-name-javadoc
Open

thswlsqls wants to merge 1 commit into
open-telemetry:mainfrom
thswlsqls:docs/component-provider-resource-name-javadoc

Conversation

@thswlsqls

Copy link
Copy Markdown
Contributor

Fixes #9100

Description

  • Removes the note in ComponentProvider Javadoc saying that getName() is unused and create gets empty config for Resource providers.
  • Describes the actual behavior instead: ResourceDetectorFactory calls DeclarativeConfigContext.loadComponent(Resource.class, ...), which picks the provider whose getName() matches the entry key in the resource detectors list and passes that entry's configuration to create.
  • Adds MetricReader and IdGenerator to the supported types in the Javadoc and in the declarative-config README. MetricReaderFactory loads MetricReader for pull readers (the Prometheus exporter ships such a provider), and IdGeneratorFactory loads IdGenerator.
  • Related: Promote DeclarativeConfigProperties, DeclarativeConfigException, ComponentProvider to stable #8981 (promoted ComponentProvider to stable).

Testing done

  • Docs-only, test-exempt: Javadoc and README changes, no behavior or signature change.
  • ./gradlew :sdk-extensions:autoconfigure-spi:check :sdk-extensions:declarative-config:spotlessCheck passed.
  • No docs/apidiffs change.

@thswlsqls
thswlsqls marked this pull request as ready for review December 5, 2026 11:12
@thswlsqls
thswlsqls requested a review from a team as a code owner December 5, 2026 11:12
@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

Pull request dashboard status

Waiting on reviewers · refreshed 2026-12-05 11:39 UTC

Review the latest changes.

Status above doesn't look right?
  • Just replied or pushed? Anything around or after the refresh time above may not be picked up yet — give it a few minutes.
  • Should this be with the author? Comment /dashboard route:author to route it back.
  • Anything wrong — including the routing? Report it with what you expected; it helps us improve the dashboard.

@codecov

codecov Bot commented Dec 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.52%. Comparing base (ddaf381) to head (6b4b0ad).

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #9101      +/-   ##
============================================
+ Coverage     90.50%   90.52%   +0.01%     
  Complexity    11273    11273              
============================================
  Files          1040     1040              
  Lines         30762    30762              
  Branches       4035     4035              
============================================
+ Hits          27840    27846       +6     
+ Misses         1938     1934       -4     
+ Partials        984      982       -2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ComponentProvider Javadoc describes outdated Resource provider behavior

1 participant